package edu.usx.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author Usx
 * @since 2024-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Review对象", description = "")
public class Review implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "评价id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "被评价的服务id")
    @TableField("service_id")
    private Integer serviceId;

    @ApiModelProperty(value = "评价用户的id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "评分(1 - 5)")
    private Integer rating;

    @ApiModelProperty(value = "评价内容")
    @TableField("review_text")
    private String reviewText;

    @ApiModelProperty(value = "点评时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "评价修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
